package com.itheima.student;

public class Operator4 {
    private student4 student;
    public Operator4(student4 student) {
        this.student = student;
    }

    public void printpass() {
        if (student.getScore() >= 60) {
            System.out.println(student.getName() + "的成绩为" + student.getScore() + "及格！");
        } else {
            System.out.println(student.getName() + "的成绩为" + student.getScore() + "不及格！");
        }
    }
}
